import { createRouter, createWebHashHistory } from "vue-router"
import ZonesPage from "@/pages/ZonesPage.vue"
import PostPage from "@/pages/PostPage.vue"
import SecionPage from "@/pages/SecionPage.vue"
import MeseeagePage from "@/pages/MeseeagePage.vue"
import MypostPage from "@/pages/MypostPage.vue"
import UserPage from "@/pages/UserPage.vue"
import ManagePage from "@/pages/ManagePage.vue"

const routes=[
    {
        path:"/",
        name:"ZonesPage",
        component:ZonesPage
    },
    {
        path:"/PostPage",
        name:"PostPage",
        component:PostPage,
        props:true
    },
    {
        path:'/SectionPage',
        name:'SectionPage',
        component:SecionPage,
        props:true
        
    },
    {
        path:'/MeseeagePage',
        name:'MeseeagePage',
        component:MeseeagePage,
        props:true
        
    },
    {
        path:'/MypostPage',
        name:'MypostPage',
        component:MypostPage,
        props:true
        
    },
    {
        path:'/UserPage',
        name:'UserPage',
        component:UserPage,
        props:true
        
    },
    {
        path:'/ManagePage',
        name:'ManagePage',
        component:ManagePage,
        props:true
    }
]

const router= createRouter({
    history:createWebHashHistory(),
    routes
})
export default router

